// result.js
Page({
  data: {
    sketchImagePath: ''
  },
  onLoad: function (options) {
    this.setData({
      sketchImagePath: options.imagePath
    })
  },
  saveImage: function () {
    wx.saveImageToPhotosAlbum({
      filePath: this.data.sketchImagePath,
      success: (res) => {
        wx.showToast({
          title: '保存成功',
          icon: 'success',
          duration: 2000
        })
      }
    })
  },
  backToHome: function () {
    wx.navigateBack({
      delta: 2
    })
  },
  retake: function () {
    wx.navigateBack()
  }
})
